package com.zxjbyte.yiyi.module.plugin.job.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Author zhangxingjia
 * @Date 2024/6/20 10:15
 * @Version: 1.0
 */
@Data
@Schema(description = "定时任务配置参数")
public class JobConfigDTO {

    @Schema(description = "失败重试次数")
    private Integer failRetryCount;

    @Schema(description = "失败重试间隔，单位：毫秒")
    private Long failRetryInterval;

    @Schema(description = "是否记录调度日志")
    private Boolean needJobLog;

    @Schema(description = "是否开启报警邮件")
    private Boolean needAlarmEmail;

    @Schema(description = "触发报警类型：TIMEOUT-执行超时，EXCEPTION-执行异常")
    private String alarmType;

    @Schema(description = "任务执行超时时间 单位：毫秒")
    private Long timeout;

    @Schema(description = "报警邮件负责人")
    private String author;

    @Schema(description = "报警邮件地址, 多个,分隔")
    private String emailAddress;
}
